package com.example.designpatterns.visitor;

public class Client {

    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.add(new OneElement());
        objectStructure.add(new OneElement());
        objectStructure.add(new TwoElement());
        objectStructure.add(new TwoElement());

        objectStructure.accept(new OneVisitor());
        System.out.println();
        objectStructure.accept(new TwoVisitor());
    }
}

